package com.lottery.material.dao.portaluser;

import com.lottery.material.pojo.page.Page;
import com.lottery.material.pojo.portaluser.FollowInfo;
import com.lottery.material.vo.portal.user.FollowUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description 关注信息Mapper
 * @author rambo
 * @date 2019年4月11日 下午9:27:54
 */
@SuppressWarnings("JavaDoc")
public interface FollowInfoMapper {
	
    Integer deleteByPrimaryKey(Integer id);

    Integer insert(FollowInfo record);

    Integer insertSelective(FollowInfo record);

    FollowInfo selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(FollowInfo record);

    Integer updateByPrimaryKey(FollowInfo record);

    /**
     * description: 查询用户关注记录
     * author sunny
     * createDate 2019-04-15 下午 2:43
     * @param followInfo
     * @return
     */
    FollowInfo findUserFollow(FollowInfo followInfo);

    FollowInfo findByUserIdAndFollowUserId(@Param("userId") String userId, @Param("hisUserId") String hisUserId);

    /**
     * @Author 肖拔赟
     * @Description 6.2	获取达人排行榜接口
     * @Date Created on 2019-04-26 10:06
     * @param page
     * @return List<FollowUserVo>
     */
    List<FollowUserVo> getFollowRankingListPage(Page page);
}
